/** Interactive Surface  FYP- 25 Interactive Surface FYP- 25 Interactive Surface FYP- 25
 *
 *  @author Acer
 */
package utilities;

/** Interactive Surface FYP- 25 Interactive Surface FYP- 25 Interactive Surface FYP- 25
 *  General Information about this class -
 *  Comments -
 */
public class Calibrate7 {

    public boolean point1(int x, int y) {
        if (50 < x && x < 200 && 200 < y && y < 450) {
            return true;
        } else {
            return false;
        }
    }

    public boolean point2(int x, int y) {
        if (300 < x && x < 500 && 100 < y && y < 400) {
            return true;
        } else {
            return false;
        }
    }

    public boolean point3(int x, int y) {
        if (600 < x && x < 800 && 100 < y && y < 400) {
            return true;
        } else {
            return false;
        }
    }

    public boolean point4(int x, int y) {
        if (900 < x && x < 1200 && 200 < y && y < 450) {
            return true;
        } else {
            return false;
        }
    }

    public boolean point5(int x, int y) {
        if (100 < x && x < 300 && 550 < y && y < 800) {
            return true;
        } else {
            return false;
        }
    }

    public boolean point6(int x, int y) {
        if (400 < x && x < 600 && 450 < y && y < 700) {
            return true;
        } else {
            return false;
        }
    }

    public boolean point7(int x, int y) {
        if (700 < x && x < 900 && 550 < y && y < 800) {
            return true;
        } else {
            return false;
        }
    }

    public boolean isPoint(int x, int y, int point) {
        if (minX(point) < x && x < maxX(point) && minY(point) < y && y < maxY(point)) {
            return true;
        } else {
            return false;
        }
    }

    int[] poiX = {150, 450, 750, 1050, 150, 450, 750, 1050};
    int[] poiY = {300, 300, 300, 300, 600, 600, 600, 600};

    public int minX(int point) {
        return poiX[point] - 100;
    }

    public int maxX(int point) {
        return poiX[point] + 100;
    }

    public int minY(int point) {
        return poiY[point] - 100;
    }

    public int maxY(int point) {
        return poiY[point] + 200;
    }
}
